import request, {Get,Post} from "./request";

// export const getBannerAPI = (params?:ParamsType)=>request.get('/prod-api/api/rotation/list',{
//     params 
// })

// 封装Get / Post
export const getBannerAPI = (params?:any) => Get('/prod-api/api/rotation/list',params)

// 用户注册
export const registerAPI = (params?:any)=>Post('/prod-api/api/register',params)

// 用户登陆
export const LoginAPI = (data?:any) => Post('/prod-api/api/login',data)

// 获取用户信息
export const getInfoAPI = (params?:any)=>Get('/prod-api/api/common/user/getInfo',params)

// 修改密码
export const ChangePassAPI = (data?:any)=>request({
    url:'/prod-api/api/common/user/resetPwd',
    method:"PUT",
    data,
})

// 修改用户信息
export const changeUserInfoAPI = (data?:any)=>request({
    url:'/prod-api/api/common/user',
    method:"PUT",
    data,
})

// 文件上传
export const uploadFileTwoAPI  = (data?:any)=>request({
    url:'http://116.62.165.233:3333/app/uplodafile',
    method:'POST',
    data,
})
